//
//  ViewController.m
//  ChangChat
//
//  Created by Cocoa on 2019/8/19.
//  Copyright © 2019 yibai. All rights reserved.
//

#import "LoadingVC.h"
#import "AppDelegate.h"
#import "IMManager.h"

@interface LoadingVC ()

@end

@implementation LoadingVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    if (UserManager.shareManager.isLogin) {
        dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
            [kAppDelegate enterHomeVC];
            [UserManager.shareManager updateFriendList];
            [UserManager.shareManager updateGroupChatList];
        });
    } else {
        [kAppDelegate enterLoginVC];
    }
}


@end
